<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>View Collaboration</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body>
    View Collaboration: <br /><br />
  
    <stripes:form id="viewCollaboration" action="/Collaboration.action">
    
    <table id="collaborationView" class="plainTable" border="1">
      <tr><td class="label">Name:</td><td>${actionBean.name}</td></tr>
      <tr><td class="label">Collaborating Organizations:</td><td>
      	<table>
  	    <c:forEach var="collaboratingOrganization" items="${actionBean.collaboratingOrganizationsIterator}">
   	      <tr><td>
          <stripes:link href="/Organization.action" event="view" target="main">
            <stripes:param name="name" value="${collaboratingOrganization}"/>${collaboratingOrganization}
          </stripes:link>
          </td></tr>
 	    </c:forEach>
 	    </table>
      </td></tr>
      <tr><td class="label">Collaboration Types:</td><td>
      	<table>
  	    <c:forEach var="collaborationType" items="${actionBean.collaborationTypesIterator}">
   	      <tr><td>${collaborationType}</td></tr>
 	    </c:forEach>
 	    </table>
      </td></tr>
      <tr><td class="label">Years:</td><td>
      	<table>
  	    <c:forEach var="year" items="${actionBean.yearsIterator}">
   	      <tr><td>${year}</td></tr>
 	    </c:forEach>
 	    </table>
      </td></tr>
      <tr><td class="label">Outcome Types:</td><td>
      	<table>
  	    <c:forEach var="outcomeType" items="${actionBean.outcomeTypesIterator}">
   	      <tr><td>${outcomeType}</td></tr>
 	    </c:forEach>
 	    </table>
      </td></tr>
      <tr><td class="label">Description:</td><td>${actionBean.description}</td></tr>
    </table>
      <stripes:hidden name="name" value="${collaboration.name}"/>
        <stripes:submit value="Edit" name="edit"/>&nbsp;&nbsp;
        <stripes:submit value="Delete" name="delete"/>
    </stripes:form>
  </body>
</html>